<?php
echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/auth.css');
echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/ui-darkness/jquery-ui-1.8.16.custom.css');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery-1.6.2.min.js');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery-ui-1.8.16.custom.min.js');
?>
<script type="text/javascript">
$(function() {
	$("#dialog:ui-dialog").dialog("destroy");
	
	$("#dialog-message").dialog({
		modal: true,
		buttons: {
			OK: function() {
				$(this).dialog("close");
			}
		}
	});
});
</script>
<?php
$this->headTitle('Login');
?>
<h1>Login</h1>
<div class="login">
<?php echo $this->form->setAction($this->url()); ?>
</div>
<?php
if(isset($this->auth_checker)){
	if($this->auth_checker == false) {
?>
		<div id="dialog-message" title="Login ERROR">
			<p>Incorrect ID or password entered.</p>
			<p>Please try again</p>
		</div>
<?php
	}
}
?>